require'nvim-treesitter.configs'.setup {
  refactor = {
    smart_rename = {
      enable = true,
      keymaps = {
        smart_rename = "grr",  -- mapping to rename reference under cursor
      },
    },
    highlight_definitions = {
      enable = false
    },
    highlight_current_scope = {
      enable = false
    },
    navigation = {
      enable = true,
      keymaps = {
        goto_definition = "gnd",      -- mapping to go to definition of symbol under cursor
        list_definitions = "gnD"      -- mapping to list all definitions in current file
      }
    }
  },
}
